export function write_card(bracelet_number: any) {
  jsHandler.strCode = bracelet_number
  const tnum = jsHandler.writeEPC(bracelet_number)
  return tnum
}

export function read_card() {
  const res = {
    bracelet_number: '',
  }
  res.bracelet_number = jsHandler.readEPCINT()
  return res
}

export function is_client() {
  try {
    if (jsHandler) {
      return jsHandler
    } else {
      return false
    }
  } catch (error) {
    return false
  }
}
